package ar.edu.unlp.info.tesis.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * Espec: https://github.com/adlnet/xAPI-Spec/blob/master/xAPI.md#result
 * 	
 *
 */
@Entity
@Table(name= "RESULT")
public class Result {

	private long id;
	
	private int score;
	
	private boolean succes;
	
	private boolean completion;
	
	private String response;
	
	@Id
	@GeneratedValue
	@Column(name="ID", unique=true, nullable=false)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name="SCORE")
	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	@Column(name="SUCCES" )
	public boolean isSucces() {
		return succes;
	}

	public void setSucces(boolean succes) {
		this.succes = succes;
	}

	@Column(name="COMPLETION" )
	public boolean isCompletion() {
		return completion;
	}

	public void setCompletion(boolean completion) {
		this.completion = completion;
	}

	@Column(name="RESPONSE" )
	public String getResponse() {
		return response;
	}

	public void setResponse(String response) {
		this.response = response;
	}
}
